package com.abc.invoke.server.service.impl;

import com.abc.invoke.bean.User;
import com.abc.invoke.server.service.InterNexusInterface;
import com.abc.invoke.server.service.SessionCache;
import com.abc.invoke.services.interfaces.UserPermissionInterface;

public class UserPermissionSubNexus implements UserPermissionInterface {

	private final InterNexusInterface interNexus;

	public UserPermissionSubNexus(InterNexusInterface interNexus) {
		this.interNexus = interNexus;
	}

	@Override
	public User login(String name, String password) {
		// TODO Auto-generated method stub
		SessionCache sessionCache=interNexus.getSessionCache();
		return sessionCache.login(name, password);
	}

}
